package com.anxinr.constant;

/**
 * redis 常量类
 *
 * @author anxinr
 */
public class RedisConstant {

    /**缓存用户时间*/
    public static final Long USER_TOKEN_INFO_TIME = 60L ;
    /**拼接符*/
    public static final String REDIS_MATE = ":" ;
    /**缓存商品库存业务前缀*/
    public static final String GOODS_CACHE_INVENTORY = "GOODS_CACHE_INVENTORY:" ;
    /**缓存商品库存时间*/
    public static final Long GOODS_CACHE_INVENTORY_TIME = 180L ;
    /**用户锁时长*/
    public static final Long LOCK_USER_GOODS_TIME = 180L ;

    /**分布式锁 key 前缀*/
    public static final String USER_SHOPPING_GOODS = "USER_SHOPPING_GOODS:" ;
    /**抢购分布式锁时长*/
    public static final Long USER_SHOPPING_GOODS_TIME = 5L ;




}
